package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the transfer_approval database table.
 * 
 */
@Entity
@Table(name="transfer_approval")
@NamedQuery(name="TransferApproval.findAll", query="SELECT t FROM TransferApproval t")
public class TransferApproval implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int approval_id;

	private String approval_state;

	@Temporal(TemporalType.TIMESTAMP)
	private Date approval_time;

	//bi-directional many-to-one association to Transfer
	@ManyToOne
	@JoinColumn(name="Transfer_id")
	private Transfer transfer;

	public TransferApproval() {
	}

	public int getApproval_id() {
		return this.approval_id;
	}

	public void setApproval_id(int approval_id) {
		this.approval_id = approval_id;
	}

	public String getApproval_state() {
		return this.approval_state;
	}

	public void setApproval_state(String approval_state) {
		this.approval_state = approval_state;
	}

	public Date getApproval_time() {
		return this.approval_time;
	}

	public void setApproval_time(Date approval_time) {
		this.approval_time = approval_time;
	}

	public Transfer getTransfer() {
		return this.transfer;
	}

	public void setTransfer(Transfer transfer) {
		this.transfer = transfer;
	}

}